package main

import (
	"log"

	"github.com/shirou/gopsutil/v4/net"
)

func main() {
	ioCounters, _ := net.IOCounters(false)
	log.Println(ioCounters)

	conns, _ := net.Connections("all")

	for _, c := range conns {
		log.Println(c)
	}
}
